package com.company;

import java.util.ArrayList;

public class MonsterWolfSet {
    private ArrayList<MonsterWolf> monsterWolves=new ArrayList<>();

    public MonsterWolf get(String id) {
        MonsterWolf monsterWolf = null;
        for (MonsterWolf item : monsterWolves
        ) {
            if (true == id.equals(item.getId())) {
                monsterWolf = item;
                break;
            }

        }
        return monsterWolf;
    }
    public MonsterWolfSet() {
    }

    public MonsterWolfSet(ArrayList<MonsterWolf> monsterWolves) {
        this.monsterWolves = monsterWolves;
    }

    public ArrayList<MonsterWolf> getMonsterWolves() {
        return monsterWolves;
    }

    public void setMonsterWolves(ArrayList<MonsterWolf> monsterWolves) {
        this.monsterWolves = monsterWolves;
    }
}

